﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Windows;

namespace ModernUILogViewer.View
{
    class CustomBinding : BindingDecoratorBase
    {
        public PropertyPath SettingsPath { get; set; }

        public CustomBinding()
        {            

        }

        public override object ProvideValue(IServiceProvider provider)
        {
            //delegate binding creation etc. to the base class
            object val = base.ProvideValue(provider);

            //try to get bound items for our custom work
            DependencyObject targetObject;
            DependencyProperty targetProperty;
            bool status = TryGetTargetItems(provider, out targetObject,
                                                      out targetProperty);

            if (status)
            {
                //associate an input listener with the control
                
            }

            return val;
        }
    }
}
